// 判断对象是否为空
function isNoNull(obj){
  if (obj != null && obj != undefined && obj != '') {
    return true;
  }  else {
    return false;
  }
}

// 字符串转int数组
function strToIntArray(str){
  let arry = new Array();
  if(str != '' && str != null && str != undefined){
    let vals = str.split(",")
    vals.forEach(v => {
      arry.push(parseInt(v))
    })
  }
  return arry;
}

// 把数组用字符 c 连接成字符串
function arrayToStr(obj, c){
  if(obj != '' && obj != null && obj != undefined){
    if (obj instanceof Array) {
      return obj.join(c)
    } else {
      return obj;
    }
  } else {
    return "";
  }
}